"use strict";

var Promise = require("bluebird");

async function first(cb){
    var str1 = "first";
    console.log('=======' + "begin");
    cb(null, str1);
}

async function second(data,callback){
    var str2 = "second";
    console.log('++++++' + data);

}

var firstAsync = Promise.promisify(first);
var secondAsync = Promise.promisify(second);

firstAsync().then(secondAsync);

